local skynet = require "skynet"
local socket = require "skynet.socket"

skynet.start(function ()
    -- local listenfd= socket.listen("0.0.0.0", 8089)
    -- socket.start(listenfd, function(clienfd, addr)
    --     print("receive message",clienfd, addr)
    -- end)
    -- skynet.timeout(100, function() 
    --     print("after is, do here")
    -- end)
    -- print("hello skynet") 

    local slave = skynet.newservice("slave")
    local response = skynet.call(slave,"lua", "ping")
    print("main", response)
end)